package Animal;

/**
 * @author 孤雪唯方
 * @date 2025/05/12
 * @description 猫类
 */
public class Cat extends Animal implements IRunning{
    public Cat(String name, int age) {
        super(name, age);
    }

    /**
     * 猫吃东西
     */
    @Override
    public void eat() {
        System.out.println(this.name +"在吃猫条~~~");
    }

    /**
     * 猫在跑
     */
    @Override
    public void run() {
        System.out.println(this.name +"在用四条腿跑~~~");
    }
}
